package com.example.mybatis.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 商店表 shop
 * 
 * @author ruoyi
 * @date 2020-06-16
 */
public class Shop implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	/** 自增id */
	private Integer id;
	/** 省 */
	private String province;
	/** 市 */
	private String city;
	/** 地址 */
	private String address;
	/** 店类型 */
	private String shopType;
	/** 店名 */
	private String shopName;
	/** 经纬度 */
	private String location;
	/** 行政区划编码 */
	private String adcode;
	/** 处理状态 0-初始 1-已处理 */
	private String status;
	/** 创建时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//	@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 更新时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//	@Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setAddress(String address) 
	{
		this.address = address;
	}

	public String getAddress() 
	{
		return address;
	}
	public void setShopType(String shopType) 
	{
		this.shopType = shopType;
	}

	public String getShopType() 
	{
		return shopType;
	}
	public void setShopName(String shopName) 
	{
		this.shopName = shopName;
	}

	public String getShopName() 
	{
		return shopName;
	}
	public void setLocation(String location) 
	{
		this.location = location;
	}

	public String getLocation() 
	{
		return location;
	}
	public void setAdcode(String adcode) 
	{
		this.adcode = adcode;
	}

	public String getAdcode() 
	{
		return adcode;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("province", getProvince())
            .append("city", getCity())
            .append("address", getAddress())
            .append("shopType", getShopType())
            .append("shopName", getShopName())
            .append("location", getLocation())
            .append("adcode", getAdcode())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
